#ifndef _MAIN_H_
#define _MAIN_H_
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "MR88FX02_BSP_V1.h"
#include "Tool.h"
#include "Aip1632.h"
#include "Touch.h"
#include "Encoder.h"
#include "TempSysType.h"
#include "Led.h"
#include "TempADC.h"
#include "pid.h"
#include "FanCtrl.h"
#include "ADC_Model.h"
#include "wifi.h"
#include "system.h"
#include "mcu_api.h"
#include "wifi_tuya.h"

#define SYSCLOCK	48000000UL
extern unsigned long millis_time;
extern unsigned long time_ms;
extern bool igniter_state;  //点火棒状态显示
extern bool motor_state;  //马达状态显示
extern bool fan_state;  //风扇状态显示
extern bool feed_state;  //进料状态显示
extern uint16_t Temperature_Set;  //温度设置

extern uint8_t time_hour;
extern uint8_t time_minute;
extern bool first_temp_set; //上电初次设置温度

enum STATE_STEP
{
	INIT_STATE = 0,
	OFF_STATE,
	RUN_STATE,
	ERO_STATE
};

unsigned long millis(void);
void encode(void);

//错误信息类型
//0:无错误信息,1:错误A,2:错误B,3:错误C,4:错误D, 5:开路错误, 6:短路错误







#endif
